package br.elsa.survey.utils.loggers;

import javax.enterprise.inject.Produces;
import javax.enterprise.inject.spi.InjectionPoint;
import javax.persistence.Transient;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class LogFactory {

	public static @Produces
	@Transient
	Logger createLogger(InjectionPoint injectionPoint) {

		return LoggerFactory.getLogger(injectionPoint.getMember().getDeclaringClass());
	}
}
